package com.soecode.wxtools.bean.result;

import com.alibaba.fastjson.JSONObject;
import com.soecode.wxtools.bean.WxMenu;

import java.util.List;

public class WxMenuResult {
	private WxMenu menu;
	private List<WxMenu> conditionalmenu;

	public WxMenu getMenu() {
		return menu;
	}
	public void setMenu(WxMenu menu) {
		this.menu = menu;
	}
	
	public List<WxMenu> getConditionalmenu() {
		return conditionalmenu;
	}
	
	public void setConditionalmenu(List<WxMenu> conditionalmenu) {
		this.conditionalmenu = conditionalmenu;
	}
	
	
	@Override
	public String toString() {
		return "WxMenuResult [menu=" + menu + ", conditionalmenu=" + conditionalmenu + "]";
	}

	public String toJson() {
		return JSONObject.toJSONString(this);
	}

	public static WxMenuResult fromJson(String json) {
		return JSONObject.parseObject(json, WxMenuResult.class);
	}
}
